home *** CD-ROM | disk | FTP | other *** search
/ Toolkit for Civilization 2 / Walnut Creek CDROM - Toolkit for Civilization II.iso / _bbs / wc40 / install.bat < prev    next >
DOS Batch File  |  1996-07-30  |  2KB  |  55 lines

  1. @echo       Which cdrom drive letter?  If this is not right, this install
  2. @echo       will NOT work.   (You need the ':' after the letter, also.)
  3. set cdrom=e:
  4. @echo       What is your data directory name?
  5. @echo       (The default is 'data', which I also use.)
  6. set datadir=data
  7. @echo       If these aren't right, CNTL-C and edit this file using a text editor.
  8. pause
  9. rem ---------------- below shouldn't need edited -----------------
  10. if not exist %cdrom%\_bbs\wc40\install1.exe goto error
  11. if not exist %cdrom%\_bbs\wc40\install2.exe goto error
  12. @echo Making backup files.
  13. copy %datadir%\allfiles.dat %datadir%\allfiles.da2
  14. copy %datadir%\allfiles.ix  %datadir%\allfiles.ix2
  15. copy filearea.dat filearea.da2
  16. copy makewild.dat makewild.da2
  17. copy confdesc.dat confdesc.da2
  18. copy confdesc.ix confdesc.ix2
  19. copy confdesc.ux confdesc.ux2
  20. %cdrom%\_bbs\wc40\install1
  21. if errorlevel 1 goto restore
  22. makewild
  23. %cdrom%\_bbs\wc40\install2
  24. del $$temp$$
  25. if errorlevel 1 goto restore
  26. @echo Check the file areas with makewild.  (Just to see what happened.)
  27. pause
  28. makewild
  29. @echo The install program created a batch file called 'install3'.
  30. @echo You can change wcfiles options by editing this file.
  31. @echo Then execute the batch file by typeing 'install3'.
  32. @echo When you are done, you can check wcfile.log to see exactly what wcfile
  33. @echo thinks happened.
  34. goto end
  35.  
  36. :error
  37. @echo I don't think you have the right cdrom drive letter where my cdrom is
  38. @echo located.  I couldn't find my install program on the ''%cdrom%'' drive
  39. @echo you said was your cdrom.  Edit this file and put the right cdrom drive
  40. @echo letter in.
  41. goto end
  42.  
  43. :restore
  44. @echo  Error exit -- restoring original datafiles
  45. copy filearea.dat filearea.err
  46. copy filearea.da2 filearea.dat
  47. copy makewild.dat makewild.err
  48. copy makewild.da2 makewild.dat
  49. copy confdesc.dat confdesc.err
  50. copy confdesc.da2 confdesc.dat
  51. copy confdesc.ix2 confdesc.ix
  52. copy confdesc.ux2 confdesc.ux
  53.  
  54. :end
  55.